import request from '@/utils/request';

export async function getProductTotalInfoByPage (params: any) {
    return request('/api/project/getProductTotalInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProductTotalInfo (params: any) {
    return request('/api/project/addProductTotalInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateProductTotalInfo (params: any) {
    return request('/api/project/updateProductTotalInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delProductTotalInfo (params: any) {
    return request('/api/project/delProductTotalInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportProductTotalInfo(params: any) {
    return request('/api/project/exportProductTotalInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProductTotalInfoByPage, addProductTotalInfo, updateProductTotalInfo, delProductTotalInfo, exportProductTotalInfo }
